Repository navigation
Improve task recovery and evidence checks for 5.1.6 - #127
Conversation
There was a problem hiding this comment.
Devin Review found 1 potential issue.
1 flag not posted on this PR by your GitHub settings — view it in Devin Review. (Configure)
| if (!/^##\s+Implementation checkpoint\s*$/i.test(lines[i].trim())) { | ||
| retained.push(lines[i]) | ||
| continue | ||
| } | ||
| const body = [] | ||
| while (i + 1 < lines.length && !/^#{1,2}\s/.test(lines[i + 1].trim())) body.push(lines[++i]) |
There was a problem hiding this comment.
🟡 Markdown examples corrupt saved checkpoints
When checkpoints contain fenced or indented Markdown, implementationCheckpoint treats code headings as section boundaries or replacement checkpoints. fde resume then truncates the checkpoint or shows example text instead, hiding current recovery details.
Learn more
The extractor recognizes headings after calling trim(), without tracking Markdown code blocks. A line inside a fenced block can therefore end the checkpoint, while an indented code line named ## Implementation checkpoint can become the last checkpoint and supersede the real one. The remaining checkpoint fields are moved into ordinary context, where bounded history trimming can hide them.
Example: A checkpoint containing ```sh\n## setup\necho ready\n``` returns only the text before ## setup. A later indented ## Implementation checkpoint example can replace the real checkpoint entirely.
Recommended fix: Parse headings only outside fenced and indented code. Accept valid Markdown heading indentation without trimming arbitrary code indentation, and add regression coverage for fenced and indented H1/H2 text.
Was this helpful? React with 👍 or 👎 to provide feedback.
Interrupted implementation now resumes from an optional saved checkpoint and checks the current task record before continuing. The CLI preserves that summary through bounded context without opening linked files. Existing methods clarify command evidence, consequential trust boundaries and proof that failure signals reach the intended operator.
Consolidates coordinator instructions, makes standalone method entry explicit, and regenerates the existing 35 task packages. No new task skills or dependencies. Includes version 5.1.6 and user-facing documentation.
Validation:
npm run check(427 tests), routing static/live CLI checks, context-budget fixture, package dry-run and independent diff review passed. Four fresh-session synthetic diagnostics exercised stale evidence, alert readiness, tenant isolation and checkpoint recovery. Earlier diagnostic deviations and limits are retained indocs/verification.md; these are not customer production or comparative performance results.Review follow-up: checkpoint extraction ignores headings in fenced and list code examples. Dedicated regressions and a fresh full check pass; the supported record format uses unindented headings.